package com.agent.vpsserver.modules.server.response;


import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 服务器信息(ServerInfo)表实体类
 *
 * @author guochao
 * @since 2024-03-12 23:50:13
 */
@Data
public class ServerInfoPageResponse {

    private Long id;
    /**
     * ip
     */
    @ApiModelProperty(value = "ip", required = true)
    private String host;

    /**
     * 端口
     */
    @ApiModelProperty(value = "端口", required = true)
    private Integer port;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    /**
     * 服务器状态 1、正常 2、禁用
     */
    @ApiModelProperty(value = "服务器状态 1、正常 2、禁用", required = true)
    private Integer status;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

}
